home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / scrollingeditfield / makefile next >
Encoding:
Makefile  |  2000-06-23  |  4.5 KB  |  104 lines

  1. #
  2. #     File: MakeFile
  3. #     
  4. #     Description:
  5. #    This file contains the MPW Make build commands for creating
  6. #    the ScrollingTextUserPane application.
  7. #    
  8. #    ScrollingTextUserPane is an application illustrating how to implement
  9. #    a scrolling text field using a user pane control
  10. #     Copyright:
  11. #         © Copyright 2000 Apple Computer, Inc. All rights reserved.
  12. #     
  13. #     Disclaimer:
  14. #         IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  15. #         ("Apple") in consideration of your agreement to the following terms, and your
  16. #         use, installation, modification or redistribution of this Apple software
  17. #         constitutes acceptance of these terms.  If you do not agree with these terms,
  18. #         please do not use, install, modify or redistribute this Apple software.
  19. #         In consideration of your agreement to abide by the following terms, and subject
  20. #         to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  21. #         copyrights in this original Apple software (the "Apple Software"), to use,
  22. #         reproduce, modify and redistribute the Apple Software, with or without
  23. #         modifications, in source and/or binary forms; provided that if you redistribute
  24. #         the Apple Software in its entirety and without modifications, you must retain
  25. #         this notice and the following text and disclaimers in all such redistributions of
  26. #         the Apple Software.  Neither the name, trademarks, service marks or logos of
  27. #         Apple Computer, Inc. may be used to endorse or promote products derived from the
  28. #         Apple Software without specific prior written permission from Apple.  Except as
  29. #         expressly stated in this notice, no other rights or licenses, express or implied,
  30. #         are granted by Apple herein, including but not limited to any patent rights that
  31. #         may be infringed by your derivative works or by other works in which the Apple
  32. #         Software may be incorporated.
  33. #         The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  34. #         WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  35. #         WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  36. #         PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  37. #         COMBINATION WITH YOUR PRODUCTS.
  38. #         IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  39. #         CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  40. #         GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  41. #         ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  42. #         OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  43. #         (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  44. #         ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  45. #     Change History (most recent first):
  46. #         Fri, Jan 28, 2000 -- created
  47. #
  48.  
  49.  
  50. # PPCObjects contains the names of all the powerpc object files
  51. # generated by the C compiler.  We put all the object files in a
  52. # directory called 'obj'
  53. PPCObjects = :obj:ScrollingTextUserPane.c.ppc ∂
  54.     :obj:STUPControl.c.ppc
  55.  
  56.  
  57. # CCppc contains the C compiler comand we use for compiling
  58. # the source files.
  59. CCppc  = MrC -w 35 -align power -proto strict -d TARGET_API_MAC_CARBON -opt off 
  60.  
  61. # RezFiles contains a list of the rez files used in this build.
  62. RezFiles = ScrollingTextUserPane.r
  63.  
  64. # Resources contains a list of all the resource and rez files
  65. # used to build the application
  66. Resources = {RezFiles} ScrollingTextUserPane.rsrc
  67.  
  68. # resources
  69.  
  70. ScrollingTextUserPane ƒƒ {Resources} {PPCObjects}
  71.     Rez -t "APPL" -i "{RIncludes}" -o ScrollingTextUserPane {RezFiles}
  72.  
  73. # object code
  74.  
  75. ScrollingTextUserPane ƒƒ {Resources} {PPCObjects}
  76.     PPCLink -o ScrollingTextUserPane -m main ∂
  77.         {PPCObjects} ∂
  78.         {SharedLibraries}CarbonLib
  79.  
  80. # bundle
  81.  
  82. ScrollingTextUserPane ƒƒ {Resources} {PPCObjects}
  83.     SetFile -t 'APPL' -c '????' -a ib ScrollingTextUserPane
  84.  
  85. # source code
  86.  
  87. :obj:ScrollingTextUserPane.c.ppc ƒ  ScrollingTextUserPane.c ∂
  88.         ScrollingTextUserPane.h STUPControl.h :obj:make.com
  89.     {CCppc} ScrollingTextUserPane.c -o :obj:ScrollingTextUserPane.c.ppc
  90.  
  91. :obj:STUPControl.c.ppc ƒ  STUPControl.c STUPControl.h :obj:make.com
  92.     {CCppc} STUPControl.c -o :obj:STUPControl.c.ppc
  93.  
  94.  
  95. ### objects folder
  96. :obj:make.com ƒ MakeFile
  97.     ( NewFolder obj || set status 0 ) ∑ dev:null
  98.     Echo "ScrollingTextUserPane 1.0" > :obj:make.com
  99.